import cv2

if __name__ == '__main__':
    img = cv2.imread('lena_gray.jpg')
    if img is not None:
        cv2.imshow('lena', img)
        cv2.waitKey(-1)
        cv2.destroyAllWindows()
    else:
        print('The file is not exist')